<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>cloud_store</title>
</head>
<body>
    <h1>上传文件</h1>
    <form method="post" enctype="multipart/form-data">
        {% csrf_token %}
        {{ form.as_div }}
        <button type="submit">上传</button>
    </form>
    {% if success %}
        <p>上传成功</p>
        <script>
        setTimeout(function(){
            window.location.href = "{% url 'cloud_store_app:list' %}";
        }, 2000);
        </script>
    {% endif %}
</body>
</html>